﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using PraiseSystem.Models;

namespace PraiseSystem.Controllers
{
    public class UsersController : Controller
    {
        PraiserRepository praiserRepo = new PraiserRepository();
        PraiseDBContext db = new PraiseDBContext();
        public ActionResult Index()
        {
            //praiserRepo.AddUser("P1123123", "name2");
            //praiserRepo.AddUser("P3123123", "name3");
            //praiserRepo.AddUser("P4123123", "name4");
            //praiserRepo.AddUser("P5123123", "name5");
            //praiserRepo.AddUser("P6123123", "name6");
            return View(praiserRepo.GetUsers().ToList());
            //return View(db.Users.Where(u => u.UserID == "P1").FirstOrDefault().Praises.ToList());
        }
    }
}